// This is ADM pattern returning object literal withour dependencies
define( function() {
	var me = this;
	me.data = {
		pgs: [],
		cnt: 0
	}
	return {
		data: this.data,
		addPage: function(p) {
			var me = this;
			me.data.pgs[me.data.cnt] = p;
			me.data.cnt++;
			console.log("document.add");
		},
		removePage: function() {
			var me = this;
			me.data.cnt--;
			console.log("document.remove");
		}
	}
});
